package com.mall.app.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.app.bean.TbCart;

/**
 * <p>
 * 购物车表 Mapper 接口
 * </p>
 *
 * @author LeeSin
 * @since 2020-07-10
 */
@Mapper
@Repository
public interface TbCartMapper extends BaseMapper<TbCart> 
{
	
	List<TbCart> listPageCart(Map<String, Object> map);
	
	List<TbCart> listCart(Map<String, Object> map);
	
	int getCount(Map<String, Object> map);
	
	int removeBatchCarts(String[] cartIds);
	
	int updateCart(TbCart cart);
	
	int insertCart(TbCart cart);
}
